<template>
  <div class="not-found">
    <h1>你输入的路径有问题~</h1>
    <el-button @click="go">返回上一路径</el-button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import router from '../../router/index'

export default defineComponent({
  setup() {
    const go = () => {
      router.go(-1)
    }

    return {
      go
    }
  }
})
</script>

<style scoped>
.not-found {
  width: 200px;
  height: 200px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
</style>
